<!--
 * @Author: HZK
 * @Date: 2020-10-19 18:55:17
 * @LastEditTime: 2020-10-23 09:50:01
 * @LastEditors: hanfengmi
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue</title>
</head>
<body>
    <div id='el'>
        <h1>差值表达式</h1>
        <div v-html="html"></div>
        <h3>{{ msg }}</h3>
        <h3>{{ count }}</h3>
        <div v-on:click="clickHandler">asdsadad</div>
        <input type="test" v-model="count" />
    </div>
</body>
<script src="./js/dep.js"></script>
<script src="./js/watch.js"></script>
<script src="./js/compiler.js"></script>
<script src="./js/observer.js"></script>
<script src="./js/vue.js"></script>
<script>
    let vm = new Vue({
        el: '#el',
        data: {
            msg:"test",
            count:12,
            o: 'object',
            html:'<p>sadasdd</p>',
            dog: {name:'hzk'}
        },
        method: {
            clickHandler () {
                // 该 name 属性是否是响应式的
                this.msg = 'Trump'
                // console.log(this)
            }
        }
    })

    // vm.msg = {test:'Hello'}
</script>
</html>